package com.itheima.test;

import com.itheima.dao.UserMapper;
import com.itheima.daomain.User;
import com.itheima.util.SessionFactoryUtils;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @Descriptionn:test
 * @Create by:依然
 * @Date:2021/11/2 16:22
 */
public class test {
    public static void main(String[] args) {
        SqlSession sqlSession = SessionFactoryUtils.getSession();
        UserMapper mapper = sqlSession.getMapper(UserMapper.class);
        List<User> users = mapper.SelectAll();
        for (User user : users) {
            System.out.println(user);
        }

    }
}
